package mechanism.classloader.office;

public class Office {

	public static void main(String[] args) throws Exception{
		System.out.println(Office.class.getClassLoader());
		System.out.println(ClassLoader.getSystemClassLoader());
		System.out.println(Class.class.getClassLoader());
		//Class c = Class.forName(args[0]);
		Office office= new Office();
		// ClassLoader.getCallerClassLoader()
		Class c = Class.forName(args[0], true, office.getClass().getClassLoader());
		Assembly o = (Assembly)c.newInstance();
		o.print();
	}

}
